@import 'common.css';

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --background-color: #f4f6f9;
    --text-color: #333;
    --border-radius: 8px;
    --gradient-start: #0d6efd;
    --gradient-end: #0dcaf0;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body.register-page {
    background-color: var(--background-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

.register-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
}

.register-container .row {
    width: 100%;
    margin: 0;
}

.register-image-section {
    background-image: url('../img/register-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    height: 100%;
}

.register-image-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.9) 0%, rgba(13, 202, 240, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 2rem;
}

.register-text-overlay {
    max-width: 600px;
}

.register-text-overlay h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.register-text-overlay p {
    font-size: 1.2rem;
    margin: 0 auto;
}

.register-form-section {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    padding: 2rem;
    height: 100%;
}

.register-form-wrapper {
    width: 100%;
    max-width: 500px;
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.register-logo {
    max-width: 200px;
    margin: 0 auto 20px;
    display: block;
    transition: transform 0.3s ease;
}

.register-logo:hover {
    transform: scale(1.05);
}

.register-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.register-description {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.register-form .form-floating {
    margin-bottom: 1.5rem;
    position: relative;
}

.register-form .form-floating .form-control {
    border-radius: var(--border-radius);
    padding-right: 50px;
}

.register-form .form-floating .input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    z-index: 10;
    pointer-events: none; 
}

.register-form .form-floating label {
    padding-left: 15px; 
    display: flex;
    align-items: center;
}

.register-form .form-floating label i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.register-form .form-floating .form-control:focus + label i,
.register-form .form-floating .form-control:not(:placeholder-shown) + label i {
    color: var(--primary-color);
}

.register-form .btn-primary {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    border: none;
    border-radius: var(--border-radius);
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.register-form .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.15);
}

.register-form .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.6s;
}

.register-form .btn-primary:hover::before {
    left: 100%;
}

.register-links {
    text-align: center;
    margin-top: 20px;
}

.register-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.register-links a:hover {
    color: darken(var(--primary-color), 15%);
    text-decoration: underline;
}

.social-login {
    margin-top: 20px;
    text-align: center;
}

.social-login-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.social-login-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.social-login-btn.facebook { background-color: #3b5998; }
.social-login-btn.google { background-color: #db4437; }
.social-login-btn.twitter { background-color: #1da1f2; }

.alert-danger {
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
}

.alert-danger i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.form-check {
    padding: 10px 0;
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

.form-check-input {
    margin-right: 8px;
    vertical-align: middle;
}

.form-check-label {
    font-size: 14px;
    color: #333;
    vertical-align: middle;
}

.terms-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    margin-left: 4px;
}

.terms-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .register-container {
        flex-direction: column;
    }

    .register-image-section {
        display: none;
    }

    .register-form-section {
        width: 100%;
        padding: 1rem;
    }

    .register-form-wrapper {
        padding: 1rem;
        max-width: 100%;
        box-shadow: none;
    }
    .form-check-label {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .register-form-wrapper {
        padding: 0.5rem;
    }

    .social-login-btn {
        width: 40px;
        height: 40px;
    }
}