﻿
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.register-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.register-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 20px 0;
}

.register-header {
    text-align: center;
    margin-bottom: 2rem;
}

.register-title {
    color: #333;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.register-subtitle {
    color: #666;
    font-size: 1rem;
}

.form-floating {
    margin-bottom: 1rem;
}

.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

    .form-row .form-floating {
        flex: 1;
        margin-bottom: 0;
    }

.form-control {
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

    .form-control:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
        background-color: white;
    }

    .form-control.is-invalid {
        border-color: #dc3545;
        background-color: #fff5f5;
    }

    .form-control.is-valid {
        border-color: #28a745;
        background-color: #f0fff4;
    }

.form-floating > label {
    color: #666;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    }

.divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

    .divider::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(to right, transparent, #ddd, transparent);
    }

    .divider span {
        background: rgba(255, 255, 255, 0.95);
        padding: 0 1rem;
        color: #666;
        font-size: 14px;
    }

.social-register {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

.btn-google {
    background: #db4437;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px;
    flex: 1;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .btn-google:hover {
        background: #c23321;
        transform: translateY(-2px);
        color: white;
    }

.btn-facebook {
    background: #1877f2;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px;
    flex: 1;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .btn-facebook:hover {
        background: #166fe5;
        transform: translateY(-2px);
        color: white;
    }

.form-check {
    margin-bottom: 1rem;
    text-align: left;
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-label {
    font-size: 0.9rem;
    color: #666;
}

    .form-check-label a {
        color: #667eea;
        text-decoration: none;
    }

        .form-check-label a:hover {
            text-decoration: underline;
        }

.alert {
    border-radius: 12px;
    border: none;
    margin-bottom: 1rem;
}

.password-strength {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.strength-indicator {
    height: 4px;
    background: #e1e5e9;
    border-radius: 2px;
    margin: 0.5rem 0;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-weak {
    background: #dc3545;
    width: 25%;
}

.strength-fair {
    background: #ffc107;
    width: 50%;
}

.strength-good {
    background: #fd7e14;
    width: 75%;
}

.strength-strong {
    background: #28a745;
    width: 100%;
}

.password-requirements {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

    .requirement.met {
        color: #28a745;
    }

    .requirement.not-met {
        color: #dc3545;
    }

.signin-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e1e5e9;
}

    .signin-link a {
        color: #667eea;
        text-decoration: none;
        font-weight: 500;
    }

        .signin-link a:hover {
            text-decoration: underline;
        }

@media (max-width: 480px) {
    .register-card {
        padding: 1.5rem;
        margin: 10px;
    }

    .register-title {
        font-size: 1.5rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

        .form-row .form-floating {
            margin-bottom: 1rem;
        }

    .social-register {
        flex-direction: column;
    }
}

.loading {
    display: none;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

.text-danger {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.btn-google, .btn-facebook {
    margin-left: auto !important;
    margin-right: auto !important;
}