﻿body {
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Arial', sans-serif;
}

.container.login {
    min-height: calc(100vh - 40px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    width: 100%;
    max-width: 500px;
    min-height: 500px;
    background: linear-gradient(135deg, #6495ED 0%, #5a7fd8 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: none;
    position: relative;
    overflow: hidden;
}

.card-header {
    background: transparent;
    border: none;
    padding: 30px 30px 20px;
    position: relative;
}

    .card-header h3 {
        color: white;
        font-size: 28px;
        font-weight: 300;
        text-align: center;
        margin: 0;
    }

.card-body {
    padding: 20px 30px;
}

.card-footer {
    background: transparent;
    border: none;
    padding: 20px 30px 30px;
    text-align: center;
}

/* Social Icons */
.social_icon {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

    .social_icon button {
        background: none;
        border: none;
        padding: 0;
    }

    .social_icon span {
        display: flex;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        color: white;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        cursor: pointer;
    }

    .social_icon .fab.fa-google-plus-square {
        background: #FFC312;
        color: #333;
    }

    .social_icon .fab.fa-facebook-square {
        background: #1877F2;
        color: white;
    }

    .social_icon span:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }

/* Choice Buttons */
.choice-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.choice-btn {
    flex: 1;
    padding: 15px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 16px;
}

    .choice-btn:hover {
        background: rgba(255, 195, 18, 0.6);
        color: #333;
        transform: translateY(-2px);
    }

    .choice-btn.active {
        background: #FFC312;
        color: #333;
        border-color: #FFC312;
        box-shadow: 0 4px 15px rgba(255, 195, 18, 0.3);
    }

    .choice-btn i {
        margin-right: 8px;
    }

/* Contact Methods */
.contact-method {
    display: none;
    margin-bottom: 20px;
}

    .contact-method.active {
        display: block;
    }

/* Input Groups */
.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group-prepend .input-group-text {
    background: #FFC312;
    color: #333;
    border: none;
    
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px 0 0 10px;
    font-size: 18px;
}

.form-control {
    height: 50px;
    border: none;
    border-radius: 0 10px 10px 0;
    padding: 15px;
    font-size: 16px;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

    .form-control:focus {
        outline: none;
        box-shadow: 0 4px 20px rgba(255, 195, 18, 0.3);
        border-color: #FFC312;
    }

    .form-control::placeholder {
        color: #999;
    }

/* Password Container */
.password-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    /*  right: 15px */;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    z-index: 10;
    padding: 5px;
}

    .toggle-password:hover {
        color: #333;
    }

.toggle-passwordA:hover {
    color: #333;
}

/* Submit Button */
.btn-primary {
    background: linear-gradient(135deg, #FF8A00 0%, #FF6B00 100%);
    border: none;
    border-radius: 10px;
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(255, 107, 0, 0.4);
        background: linear-gradient(135deg, #FF6B00 0%, #FF8A00 100%);
    }

/* Links */
.links {
    color: white;
    margin-bottom: 15px;
}

    .links a {
        color: #FFC312;
        text-decoration: none;
        font-weight: 600;
        margin: 0 5px;
    }

        .links a:hover {
            text-decoration: underline;
            color: #FFD700;
        }

#forgot-password {
    color: #FFC312;
    text-decoration: none;
    font-weight: 500;
}

    #forgot-password:hover {
        text-decoration: underline;
        color: #FFD700;
    }

/* Validation */
.text-danger {
    color: #ff6b6b !important;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.invalid-feedback {
    color: #ff6b6b !important;
    font-size: 14px;
    margin-top: 5px;
}

/* Phone Input */
.phone-input-container {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* RTL Support */
.text-right {
    text-align: right !important;
}

[dir="rtl"] .choice-btn i {
    margin-right: 0;
    margin-left: 8px;
}

[dir="rtl"] .input-group-prepend .input-group-text {
    border-radius: 0 10px 10px 0;
}

[dir="rtl"] .form-control {
    border-radius: 10px 0 0 10px;
    text-align: right;
}

/* Responsive */


.card {
    margin: 10px;
    max-width: none;
}

.card-header,
.card-body,
.card-footer {
    padding: 20px;
}

.social_icon {
    display: none;
}

.choice-buttons {
    flex-direction: column;
    gap: 10px;
}

.choice-btn {
    padding: 12px;
    font-size: 14px;
}

}

/* Intl Tel Input Corrections */
.iti {
    width: 100%;
}

.iti__country-list {
    z-index: 1000;
}

.iti__selected-flag {
    padding: 0 8px;
}

/* Animation d'entrée */
.card {
    animation: slideUp 0.6s ease-out;
}

.toggle-passwordA {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    z-index: 10;
    padding: 5px;
    left: 15px !important;
}


