/* ========================================
   PWA LOGIN FORM STYLES
   ======================================== */

/* Full-screen container */
.dtt-login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Login card */
.dtt-login-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
}

/* Header */
.dtt-login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.dtt-login-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1d2327;
}

.dtt-login-header p {
    margin: 0;
    color: #646970;
    font-size: 1rem;
}

/* WordPress login form overrides */
#dtt-loginform {
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
}

#dtt-loginform p {
    margin-bottom: 1.5rem;
}

#dtt-loginform label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1d2327;
    font-size: 0.95rem;
}

#dtt-loginform input[type="text"],
#dtt-loginform input[type="password"] {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.2s ease;
    min-height: 52px;
}

#dtt-loginform input[type="text"]:focus,
#dtt-loginform input[type="password"]:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

/* Remember me checkbox */
#dtt-loginform .login-remember {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

#dtt-loginform .login-remember label {
    margin: 0;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
}

#dtt-loginform input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Submit button */
#dtt-loginform .login-submit {
    margin-bottom: 0;
}

#dtt-loginform input[type="submit"] {
    width: 100%;
    min-height: 52px;
    padding: 0.875rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #2271b1 0%, #1557a0 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

#dtt-loginform input[type="submit"]:hover {
    background: linear-gradient(135deg, #1557a0 0%, #104080 100%);
    box-shadow: 0 6px 16px rgba(34, 113, 177, 0.4);
    transform: translateY(-2px);
}

#dtt-loginform input[type="submit"]:active {
    transform: translateY(0);
}

/* Lost password link */
#dtt-loginform .login-submit a {
    display: inline-block;
    margin-top: 1rem;
    color: #2271b1;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
}

#dtt-loginform .login-submit a:hover {
    color: #1557a0;
    text-decoration: underline;
}

/* Error messages */
.login-error {
    background: #fee;
    border-left: 4px solid #dc3232;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #1d2327;
}

.login-error strong {
    color: #dc3232;
}

/* Loading state */
#dtt-loginform.loading input[type="submit"] {
    position: relative;
    color: transparent;
    pointer-events: none;
}

#dtt-loginform.loading input[type="submit"]::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media screen and (max-width: 480px) {
    .dtt-login-card {
        padding: 2rem 1.5rem;
    }
    
    .dtt-login-header h1 {
        font-size: 1.5rem;
    }
}

/* Hide WordPress elements in PWA standalone mode */
@media (display-mode: standalone) {
    .dtt-login-container {
        min-height: 100vh;
    }
}
