/* Authentication Forms - Minimalist Design */

/* Auth page container */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background-color: #f8f8f8;
}

/* Main auth form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #ffffff;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    border-radius: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Auth form title */
.auth-form-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #151717;
    margin-bottom: 20px;
    text-align: center;
}

/* Form field containers */
.auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-field label {
    color: #151717;
    font-weight: 600;
    font-size: 14px;
}

/* Input container with icon */
.auth-input-container {
    border: 1.5px solid #ecedec;
    border-radius: 10px;
    height: 50px;
    display: flex;
    align-items: center;
    padding-left: 15px;
    transition: 0.2s ease-in-out;
    background-color: #ffffff;
}

.auth-input-container:focus-within {
    border: 1.5px solid #2d79f3;
}

.auth-input-container svg {
    flex-shrink: 0;
    margin-right: 10px;
    opacity: 0.7;
}

.auth-input {
    border: none;
    outline: none;
    width: 100%;
    height: 100%;
    font-size: 14px;
    background: transparent;
    color: #151717;
    font-family: inherit;
}

.auth-input::placeholder {
    color: #999;
    font-family: inherit;
}

/* Checkbox and link row */
.auth-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    margin: 10px 0;
}

.auth-row > div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.auth-row > div > label {
    font-size: 14px;
    color: #151717;
    font-weight: 400;
    cursor: pointer;
}

.auth-row input[type="checkbox"] {
    cursor: pointer;
}

.auth-link {
    font-size: 14px;
    color: #2d79f3;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: #1a5bc4;
    text-decoration: none;
}

/* Submit button */
.auth-submit-btn {
    margin: 20px 0 10px 0;
    background-color: #151717;
    border: none;
    color: white;
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    height: 50px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: inherit;
}

.auth-submit-btn:hover {
    background-color: #2a2a2a;
}

/* Auth text links */
.auth-text {
    text-align: center;
    color: #151717;
    font-size: 14px;
    margin: 5px 0;
}

/* Social auth divider */
.auth-divider {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin: 10px 0;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background-color: #ecedec;
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

/* Social auth buttons container */
.auth-social-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Social auth buttons */
.auth-social-btn {
    flex: 1;
    height: 50px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    gap: 10px;
    border: 1px solid #ededef;
    background-color: white;
    cursor: pointer;
    transition: 0.2s ease-in-out;
    color: #151717;
    text-decoration: none;
    font-size: 14px;
    font-family: inherit;
}

.auth-social-btn:hover {
    border: 1px solid #2d79f3;
    color: #151717;
    text-decoration: none;
}

.auth-social-btn svg {
    width: 20px;
    height: 20px;
}

/* Error messages */
.auth-errors {
    background-color: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 15px;
}

.auth-error {
    color: #c33;
    font-size: 13px;
    margin: 2px 0;
}

/* Success messages */
.auth-messages {
    margin: 20px auto 15px auto;
    max-width: 500px;
    width: 90%;
}

.auth-message {
    background-color: #efe;
    border: 1px solid #cfc;
    border-radius: 8px;
    padding: 10px 40px 10px 10px;
    color: #363;
    font-size: 14px;
    position: relative;
    transition: opacity 0.3s ease;
}

.auth-message-close {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    color: inherit;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.auth-message-close:hover {
    opacity: 1;
}

.auth-message-success {
    background-color: #efe;
    border: 1px solid #cfc;
    color: #363;
}

.auth-message-error {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.auth-message-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.auth-message-info {
    background-color: #e7f3ff;
    border: 1px solid #b3d9ff;
    color: #0c5460;
}

/* Help text */
.auth-help-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* Required field indicator */
.auth-required-note {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin: 10px 0;
}

/* Auth form subtitle */
.auth-form-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #151717;
    margin-bottom: 15px;
    margin-top: 20px;
}

/* Email management specific styles */
.email-item-container {
    border: 1.5px solid #ecedec;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    transition: 0.2s ease-in-out;
    background-color: #ffffff;
}

.email-item-container:hover {
    border: 1.5px solid #2d79f3;
}

.email-radio {
    margin-right: 10px;
    margin-top: 2px;
    cursor: pointer;
}

.email-label {
    flex-grow: 1;
    margin: 0;
    cursor: pointer;
    font-weight: 400;
    color: #151717;
}

.email-status-container {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.email-status-verified {
    color: #28a745;
}

.email-status-unverified {
    color: #dc3545;
}

.email-status-primary {
    color: #007bff;
}

.email-actions-row {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.email-action-btn {
    margin: 0;
    padding: 8px 16px;
    font-size: 14px;
    background-color: #151717;
    border: none;
    color: white;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-family: inherit;
}

.email-action-btn:hover {
    background-color: #2a2a2a;
}

.email-btn-danger {
    background-color: #dc3545;
}

.email-btn-danger:hover {
    background-color: #c82333;
}

/* Responsive design */
@media (max-width: 768px) {
    .auth-container {
        padding: 1rem 0.5rem;
    }
    
    .auth-form {
        padding: 30px 20px;
        margin: 0;
    }
    
    .auth-form-title {
        font-size: 1.5rem;
    }
    
    .auth-social-container {
        flex-direction: column;
    }
    
    .auth-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .auth-form {
        padding: 25px 15px;
        border-radius: 15px;
    }
    
    .auth-form-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .auth-input-container {
        height: 45px;
    }
    
    .auth-submit-btn {
        height: 45px;
    }
    
    .auth-social-btn {
        height: 45px;
    }
}