/* General Styles */
*,
*::after,
*::before {
    box-sizing: border-box;
}

body {
    background-color: #212121;
    color: #fff;
    font-family: monospace, serif;
    letter-spacing: 0.05em;
    margin: 0;
}

/* Company Name Header */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px;
}

.company-name {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    text-align: left;
    padding-left: 15px;
}

h1 {
    font-size: 23px;
    margin-bottom: 20px;
    text-align: center;
}

/* Form styles */
.form {
    width: 400px;
    padding: 64px 15px 24px;
    margin: 0 auto;
}

.control {
    margin: 0 0 24px;
}

input {
    width: 100%;
    padding: 14px 16px;
    border: 0;
    background: transparent;
    color: #fff;
    font-family: monospace, serif;
    letter-spacing: 0.05em;
    font-size: 16px;
}

input:hover,
input:focus {
    outline: none;
    border: 0;
}

.btn {
    width: 100%;
    display: block;
    padding: 14px 16px;
    background: transparent;
    outline: none;
    border: 0;
    color: #fff;
    letter-spacing: 0.1em;
    font-weight: bold;
    font-family: monospace;
    font-size: 16px;
    cursor: pointer;
    position: relative;
}

.text {
    z-index: 2;
    position: relative;
}

/* Password toggle */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #fff;
    font-size: 18px;
    z-index: 3;
}

/* Cube Gradient Styles */
.block-cube {
    position: relative;
}

input {
    background: transparent;
}

/* Updated distinct gradients for input and button */
.block-input .bg-top,
.block-input .bg-right,
.block-input .bg {
    background: linear-gradient(90deg, rgba(36, 11, 54, 1) 0%, rgba(121, 9, 85, 1) 50%, rgba(255, 153, 102, 1) 100%);
}

.btn .bg-top,
.btn .bg-right,
.btn .bg {
    background: linear-gradient(90deg, rgba(36, 54, 11, 1) 0%, rgba(9, 121, 52, 1) 50%, rgba(102, 255, 153, 1) 100%);
}

.bg-top {
    position: absolute;
    height: 10px;
    bottom: 100%;
    left: 5px;
    right: -5px;
    transform: skew(-45deg, 0);
    margin: 0;
}

.bg-inner {
    bottom: 0;
    position: absolute;
    left: 2px;
    top: 2px;
    right: 2px;
    background: #212121;
    transition: all 0.2s ease-in-out;
}

.bg-right {
    position: absolute;
    top: -5px;
    z-index: 0;
    bottom: 5px;
    width: 10px;
    left: 100%;
    transform: skew(0, -45deg);
}

.bg {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1;
    transition: all 0.2s ease-in-out;
}

.block-cube:hover .bg-inner,
.block-cube:focus-within .bg-inner {
    transform: translateY(-10px);
}

/* Links */
.signup-link {
    text-align: center;
    margin-top: 20px;
}

a {
    color: #ffa726;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Credits */
.credits {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #ffa726;
}
