* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #F1F5FF;
    color: #333;
    line-height: 1.5;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: scroll;
}

.container {
    width: 100%;
    max-width: 610px;
    margin: 0 auto;
    padding: 16px;
    background: white;
}

.back-button {
    display: inline-block;
    margin-bottom: 30px;
    cursor: pointer;
    color: black;
    font-size: 16px;
    transition: all 0.2s ease;
}

.back-icon {
    font-size: 18px;
}

.back-text {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.back-button:hover .back-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #3C71FF;
}

.form-container {
    max-width: 401px;
    margin: 0 auto;
}

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

.subtitle {
    color: black;
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 400;
}

.form-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.social-buttons {
    display: flex;
    gap: 19px;
    margin-bottom: 24px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 6px;
    border: 1px solid #3C71FF;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}


.social-btn:hover {
    background-color: #3C71FF;
    color:white;
}


.facebook-btn {
    color: black;
}
.google-btn {
    color: black;

}

.google-icon, .facebook-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.google-icon {
    background: transparent;
    color: #1a73e8;
    font-size: 16px;
}

.facebook-icon {
    background: transparent;
    color: #1877f2;
    font-size: 16px;
}

.social-btn:hover .google-icon {
    background: #1a73e8;
    color: white;
}

.social-btn:hover .facebook-icon {
    background: #1877f2;
    color: white;
}

.divider {
    position: relative;
    text-align: left;
    margin: 20px 0;
    color: black;
    font-size: 14px;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: black;
    z-index: 1;
}

.divider span {
    background: white;
    padding-right: 16px;
    position: relative;
    z-index: 2;
}

.signup-form {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-input {
    border: none;
    border-radius: 4px;
    padding:22px 10px 10px 10px;
    font-size: 14px;
    background: #F1F5FF;
    transition: all 0.2s ease;
    outline: none;
}

.form-input::placeholder {
    color: #9ca3af;
}

.field {
  position: relative;
  margin-bottom: 12px;
}

/* Floating label */
.field label {
    position: absolute;
    left: 10px;
    top: 22px;
    color: #757575;
    font-size: 14px;
    pointer-events: none;
    transition: all 0.2s ease;
    padding: 0 4px;
    transform: translateY(-50%);
  }
  
  .field input:focus + label,
.field input:not(:placeholder-shown) + label {
  top: 10px;
  left:5px;
  font-size: 10px;
  transform: translateY(-50%);
}


.full-width {
    width: 100%;
}
.half-width {
    width: 50%;
}

.password-container {
    position: relative;
    width: 100%;
    margin-bottom:12px;
}

.password-container .form-input {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 36%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #666;
    padding: 4px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.requirements {
    display: flex;
    gap: 16px;
    margin-top: -16px;
}

.requirement {
    font-size: 10px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 4px;
}
.requirement img {
    width: 11px;
    height: 11px;
}

.hidden {
    display: none;
}

.error-message {
    background-color: #F5C4C6;
    border: 1px solid #D71920;
    border-radius: 4px;
    padding: 12px 16px;
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: #DC2626;
    font-size: 14px;
}

.error-message.show {
    display: flex;
}

.error-icon {
    background-color: #DC2626;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    flex-shrink: 0;
}
.error-text{
    font-size: 16px;
    color:black;
}

.form-input.error {
    border: 2px solid #D71920;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
}

.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-container label {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    padding-left: 28px;
}

.checkbox-container label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 16px;
    height: 16px;
    border: 1px solid #D3D3D3;
    background-color: #D3D3D3;
    border-radius: 2px;
    transition: all 0.2s ease;
    transform: translateY(-50%);
}

.checkbox-container input[type="checkbox"]:checked + label::before {
    background-color: white;
    border-color: #3C71FF;
}

.checkbox-container label::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 11px;
    width: 10px;
    height: 6px;
    border-left: 2px solid #3C71FF;
    border-bottom: 2px solid #3C71FF;
    transform: rotate(-45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.checkbox-container input[type="checkbox"]:checked + label::after {
    opacity: 1;
}

.create-btn {
    background:#3C71FF;
    color: white;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    position: relative;
}

.create-btn:hover {
    box-shadow: 0 15px 40px rgba(60, 113, 255, 0.4);
}

.create-btn:active {
    background: #2248a8;
    box-shadow: 0 5px 15px rgba(60, 113, 255, 0.4);
}

.login-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.login-link a {
    color: #4285f4;
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    body{
        background: white;
        align-items: start;
    }
    .back-button{
        margin-bottom: 5px;
        margin-left:16px;
    }
    .container {
        padding: 20px 0 0 0;
    }
    
    .form-container {
        padding: 0px 8px;
    }
    
}