/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.5;
}

.signup-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.signup-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 500px;
}

.signup-logo {
    text-align: center;
    margin-bottom: 25px;
}

.signup-logo img {
    height: 80px;
    margin-bottom: 15px;
    max-width: 100%;
}

.logo-text h1 {
    font-size: 1.5rem;
    margin: 0;
    color: #2c3e50;
    line-height: 1.3;
}

.logo-text p {
    margin: 5px 0 0;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.signup-header {
    text-align: center;
    margin-bottom: 25px;
}

.signup-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.6rem;
}

.signup-header p {
    margin: 10px 0 0;
    color: #7f8c8d;
}

.signup-header a {
    color: #3498db;
    text-decoration: none;
}

.signup-header a:hover {
    text-decoration: underline;
}

/* Form Styles */
.signup-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border 0.3s;
}

.form-group input:focus {
    border-color: #3498db;
    outline: none;
}

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #7f8c8d;
    background: none;
    border: none;
    padding: 5px;
}

.password-hint {
    display: block;
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-top: 5px;
}

.terms {
    display: flex;
    align-items: center;
    margin: 25px 0;
}

.terms input {
    width: auto;
    margin-right: 10px;
    min-width: 18px;
    min-height: 18px;
}

.terms label {
    margin: 0;
    font-weight: normal;
    flex: 1;
}

.terms a {
    color: #3498db;
    text-decoration: none;
}

.terms a:hover {
    text-decoration: underline;
}

.signup-btn {
    width: 100%;
    padding: 12px;
    background-color: #2a9d8f;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    min-height: 44px;
}

.signup-btn:hover {
    background-color: #21867a;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #7f8c8d;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.divider::before {
    margin-right: 10px;
}

.divider::after {
    margin-left: 10px;
}

/* Social Buttons */
.social-signup {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    min-height: 44px;
}

.social-btn i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.social-btn.google {
    color: #db4437;
}

.social-btn.google:hover {
    background: #f5f5f5;
}

.social-btn.facebook {
    color: #4267B2;
}

.social-btn.facebook:hover {
    background: #f5f5f5;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-float img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.whatsapp-float img:hover {
    transform: scale(1.1);
}

/* Password Strength Meter */
.strength-meter {
    height: 5px;
    background: #ddd;
    margin: 5px 0 10px;
    border-radius: 3px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 0.3s, background 0.3s;
}

.strength-text {
    font-size: 0.8rem;
    color: #7f8c8d;
}

.error-message {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .signup-container {
        padding: 20px;
        margin: 20px;
        width: auto;
    }

    .signup-logo img {
        height: 60px;
    }

    .logo-text h1 {
        font-size: 1.3rem;
    }

    .logo-text p {
        font-size: 0.8rem;
    }

    .form-group input {
        padding: 10px 12px;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .signup-wrapper {
        padding: 10px;
        align-items: flex-start;
    }

    .signup-container {
        padding: 15px;
        margin: 10px 0;
        box-shadow: none;
        border-radius: 0;
    }

    .signup-header h2 {
        font-size: 1.4rem;
    }

    .social-signup {
        flex-direction: column;
    }

    .social-btn {
        padding: 10px;
        font-size: 0.9rem;
    }

    .divider {
        margin: 15px 0;
    }
}

/* Viewport Height Fix for Mobile */
@media (max-height: 700px) and (orientation: portrait) {
    .signup-wrapper {
        align-items: flex-start;
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

/* Landscape Orientation Fix */
@media (orientation: landscape) and (max-height: 500px) {
    .signup-wrapper {
        align-items: flex-start;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .signup-container {
        max-height: 95vh;
        overflow-y: auto;
    }
}

/* Very Small Devices */
@media (max-width: 360px) {
    .signup-header h2 {
        font-size: 1.3rem;
    }
    
    .form-group input {
        font-size: 0.9rem;
    }
    
    .signup-btn, .social-btn {
        font-size: 0.9rem;
    }
}